#!/usr/bin/sh

if [ $# -ne 1 ]; then
	echo "Usage: sh launch.sh <erlang node name>"
	exit 1
fi

NODE="$1"
SCRIPT="prj2server.erl"

echo "c(average). c(median). c(gossipprob). c(prj2server). c(db). c(fileupdate). c(fileretrieve). c(prj2). c(gossipMin). c(gossipMax). prj2server:start()." | erl -name ${NODE}
